<?php
/**
 * Company: www.baofu.com
 * @author dasheng(大圣)
 * @date 2025年04月05日
 */

\header("Content-type: text/html; charset=utf-8");
//====================配置商户的宝付接口授权参数============================
$ServicesPath = $_SERVER['DOCUMENT_ROOT'];
$KeyFolder = $ServicesPath."/CerFile/";	//证书路径
require_once($ServicesPath."/SecurityUtil/AESUtil.php");
require_once($ServicesPath."/SecurityUtil/NewRsaUtil.php");
require_once($ServicesPath."/SecurityUtil/SignatureUtils.php");
require_once($ServicesPath."/SecurityUtil/SHA1Util.php");
require_once($ServicesPath."/Util/Log.php");
require_once($ServicesPath."/Util/HttpClient.php");
require_once($ServicesPath."/Util/Tools.php");

include "entityinit.php";


//====================配置商户的宝付接口授权参数==============
$MemberId = "102005245";	//商户号
$TerminalId = "200005972";	//终端号

$KeyPwd = "123456";	//商户私钥证书密码

$PFX_PATH = $KeyFolder."BAOFU20240612_pri.pfx";  //注意证书路径是否存在
$CER_PATH = $KeyFolder."BAOFUP20240612_pub.cer";//注意证书路径是否存在
$PEM_PATH = $KeyFolder."BAOFU20240612_pri.pem";  //注意证书pem路径是否存在



$POST_URL = "https://vgw.baofoo.com/cutpayment/protocol/backTransRequest";  //测试环境请求地址

